package com.px.chapter_Dec_1;

public class Professor {
    private String name;
    private String specialty;
    private int age;
    private String techClass;
    public int age2;

    public Professor(String name, String specialty, int age, String techClass) {
        this.name = name;
        this.specialty = specialty;
        this.age = age;
        this.techClass = techClass;
    }
    public void show(){
        System.out.print("年龄："+getAge()+"\n"+"名字："+getName()+"\n"+"专业："+getSpecialty()+"\n"+"教授课程："+getTechClass());
        System.out.println();
    }

    public Professor() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSpecialty(String specialty) {
        this.specialty = specialty;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setTechClass(String techClass) {
        this.techClass = techClass;
    }

    public String getSpecialty() {
        return specialty;
    }

    public int getAge() {
        return age;
    }

    public String getTechClass() {
        return techClass;
    }

    public int getAge2() {
        return age2;
    }

    public void setAge2(int age2) {
        this.age2 = age2;
    }
}
